﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ninject.Modules;
using System.Net.DnsToolkit.Serializer.Stream.Reader;
using System.Net.DnsToolkit.Serializer.Stream.Reader.Record;
using System.Net.DnsToolkit.Serializer;

namespace System.Net.DnsToolkit.Configuration {

    public class DnsReaderStreamModule : NinjectModule {
        public override void Load() {
            
            Bind<IMessageReader<System.IO.Stream>>().To<MessageReader>();
            Bind<IHeaderReader<System.IO.Stream>>().To<HeaderReader>();
            Bind<IQuestionReader<System.IO.Stream>>().To<QuestionReader>();
            Bind<IRRReader<System.IO.Stream>>().To<RRReader>();
            Bind<IRecordReaderProvider<System.IO.Stream>>().To<RecordReaderProvider>();
            Bind<IRecordReader<System.IO.Stream>>().To<RecordAAAAReader>();
            Bind<IRecordReader<System.IO.Stream>>().To<RecordAReader>();
            Bind<IRecordReader<System.IO.Stream>>().To<RecordCNAMEReader>();
            Bind<IRecordReader<System.IO.Stream>>().To<RecordMXReader>();
            Bind<IRecordReader<System.IO.Stream>>().To<RecordNSReader>();
            Bind<IRecordReader<System.IO.Stream>>().To<RecordPTRReader>();
            Bind<IRecordReader<System.IO.Stream>>().To<RecordSOAReader>();


        }
    }
}
